package com.yswy.backstage.config;


import com.yswy.backstage.authfilter.AuthFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;

/**
 * This is Description
 *
 * @author linlifu
 * @date 2020/02/14
 */
public class WebMvcConfig {

    @Bean
    public FilterRegistrationBean filterSessionRegistrationBean() {
        FilterRegistrationBean registrationBean = new FilterRegistrationBean();

        AuthFilter authFilter = new AuthFilter();
        registrationBean.setFilter(authFilter);

        return registrationBean;
    }
}
